﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace vensoft.Win32
{
	public partial class frmReporteVenta: Form
	{
		public frmReporteVenta()
		{
			InitializeComponent();
		}

        private void frmReporteVenta_Load(object sender, EventArgs e)
        {
            // TODO: esta línea de código carga datos en la tabla 'DataVenta.GetAllFromVentaByFecha' Puede moverla o quitarla según sea necesario.
           // f_inicioToolStripTextBox.Visible = false;
            //f_finToolStripTextBox.Visible = false;
            this.GetAllFromVentaByFechaTableAdapter.Fill(this.DataVenta.GetAllFromVentaByFecha, new System.Nullable<System.DateTime>(((System.DateTime)(System.Convert.ChangeType(dateTimePicker1.Value.ToString(), typeof(System.DateTime)))).AddDays(-1)), new System.Nullable<System.DateTime>(((System.DateTime)(System.Convert.ChangeType(dateTimePicker2.Value.ToString(), typeof(System.DateTime))))));
                
            this.reportViewer1.RefreshReport();
        }

        private void fillToolStripButton_Click(object sender, EventArgs e)
        {
           

           // f_inicioToolStripTextBox.Text = dateTimePicker1.Value.ToString();
           // f_finToolStripTextBox.Text = dateTimePicker2.Value.ToString();
           
                this.GetAllFromVentaByFechaTableAdapter.Fill(this.DataVenta.GetAllFromVentaByFecha, new System.Nullable<System.DateTime>(((System.DateTime)(System.Convert.ChangeType(dateTimePicker1.Value.ToString(), typeof(System.DateTime)))).AddDays(-1)), new System.Nullable<System.DateTime>(((System.DateTime)(System.Convert.ChangeType(dateTimePicker2.Value.ToString(), typeof(System.DateTime))))));
                this.reportViewer1.RefreshReport();
            

        }
	}
}
